//
//  YKOrderDetailModel.h
//  YunKang
//
//  Created by leoking870 on 2017/10/3.
//  Copyright © 2017年 leoking870. All rights reserved.
//

#import <TFFoundation/TFFoundation.h>
#import "YKClientDataModel.h"
@interface YKOrderDetailGoodsModel :TFModel
@property (nonatomic, strong)NSString *ID;//	主键id
@property (nonatomic, strong)NSString *CINV_NUM;//	数量
@property (nonatomic, strong)NSString *CINV_PRICE;//	单价
@property (nonatomic, strong)NSString *CINV_NAME;//	商品名称
@property (nonatomic, strong)NSString *GENERIC_NAME;//	通用名
@property (nonatomic, strong)NSString *CPACKINGTYPE;//	规格
@property (nonatomic, strong)NSString *FACE_PIC1;//	图片

@property (nonatomic, strong)NSString *QUANTITY;//	申请数量
@property (nonatomic, strong)NSString *EDT_NUM;//	修改数量

//CINV_NUM	申请退货数量
@property (nonatomic, strong)NSString *COLLECTNUM;//	确认数量
@property (nonatomic, strong)NSString *REJECTIONNUM;//	拒收数量
@property (nonatomic, strong)NSString *CENTERPRISE;//    生产厂家
@end
@protocol YKOrderDetailGoodsModel;


@interface YKOrderDetailMapModel:TFModel
@property (nonatomic, strong)NSString *ID;//	主键id
@property (nonatomic, strong)NSString *CCUSPERSONCODE;//	下单人编码
@property (nonatomic, strong)NSString *DCREATESYSTIME;//	下单时间
@property (nonatomic, strong)NSString *CSOCODE;//订单单号
@property (nonatomic, strong)NSString *CCUSHAND;//	手机号
@property (nonatomic, strong)NSString *ZDSUM;//	订单金额(应收账款)
@property (nonatomic, strong)NSString *CANCELSUM;//	已核销金额(已收账款)
@property (nonatomic, strong)NSString *USER_NAME;//	下单人名称
@property (nonatomic, strong)NSString *CID;//	客户资料编码
@property (nonatomic, strong)NSString *CENTERPRISE;//生产厂家
/**
 审批状态 1 待审核（未提交） 2 审核通过 3 审核未通过 4 审批中 5 被退回
 确认审批和订单驳回按钮，当 BUSINESSEXAMINESTATUS
 字段值不等于1时置灰不能点击
 */
@property (nonatomic, strong)NSString *BUSINESSEXAMINESTATUS;
/**
 "1 待审批 2 审批中 3 待发货 4 待收货
 5 待评价 6 已完成 7、8 取消订单"
 */
@property(nonatomic, strong)NSString *ISTATUS;//    订单状态

@property(nonatomic, strong)NSString *ROID;//	退货申请单id
@property(nonatomic, strong)NSString *RO_BUSINESS_EXAMINESTATUS;//	退货申请单业务确认状态 1 待审批 2 已通过 3 未通过
@property(nonatomic, strong)NSString *RETURNSUM;//	退货金额
@property(nonatomic, strong)NSString *ROCREATETIME;//	退货申请时间

@property (nonatomic, strong)NSString *FACE_PIC1;
- (NSString *)iStatusString;
@end


@interface YKOrderDetailModel : TFModel
@property (nonatomic, strong) NSArray<YKOrderDetailGoodsModel> *orderGoosList;
@property (nonatomic, strong) YKOrderDetailMapModel *orderMap;
@property (nonatomic, strong) YKClientDataModel *customerDataMap;
@end
